<!DOCTYPE html>
<html>
<head>
    <title>Web.Application.Development</title>
    <link rel="stylesheet" href="<?php echo URL; ?>public/css/default.css" />
    <link rel="stylesheet" href="<?php echo URL; ?>public/css/bootstrap.css" />
    <script type="text/javascript" src="<?php echo URL; ?>public/js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo URL; ?>public/js/script.js"></script>

    <?php
        if(isset($this->js))
        {
            foreach($this->js as $js)
            {
                echo '<script type="text/javascript" src="' . URL . 'views/' . $js . '"></script>'; 
            }
        }
    ?>

</head>
<body>
    <div id="header">
        
        <a href="<?php echo URL; ?>index">About</a>
        <a href="<?php echo URL; ?>download">Download</a>
            
        
        <?php if(Session::get('log_in')): ?>
            
                
            <?php if(Session::get('role') == 'default'): ?>
                <a href="<?php echo URL; ?>dashboard">Dashboard</a>
            <?php endif; ?>
            
            <?php if(Session::get('role') == 'user'): ?>
                <a href="<?php echo URL; ?>dashboard">Dashboard</a>  
                <a href="<?php echo URL; ?>help">Help</a>
            <?php endif; ?>
            
            <?php if(Session::get('role') == 'admin'): ?>
                <a href="<?php echo URL; ?>user">Users</a>
            <?php endif; ?>
        
        <a href="<?php echo URL; ?>login/logout">Logout</a>
        <?php else: ?>
            <a href="<?php echo URL; ?>login">Login</a>
        <?php endif; ?>
        
    </div>
    <?php // This is begun content div section, See ending footer.php   ?>
    <div id="content">
